Module-level declarations
Types
Link copied to clipboard
object shop_config
Functions
Link copied to clipboard
function buy_items_for(requested_items: map<text, integer>, account_id: byte_array, auth_descriptor_id: byte_array)
Queries
Link copied to clipboard
Link copied to clipboard
@mount("shop.get_all_shop_items")
query get_all_shop_items(): list<(name: text, category: shop_item_category, price: integer, price_token: text)>
Link copied to clipboard
Operations
Link copied to clipboard
@mount("shop.buy_items")
operation buy_items(items: map<text, integer>, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
Link copied to clipboard
@mount("shop.update_shop_item_price")
operation update_shop_item_price(item_name: text, new_price: integer)